.nut-video {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  &-player {
    width: 100%;
    background: #000;
    &:focus {
      outline: none;
    }
  }
  .nut-video-mask {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 60px;
    &.custom-touch {
      bottom: 0;
    }
  }
  video {
    width: 100%;
    height: 100%;
    object-fit: fill;
  }
  &-play-btn {
    // display: none;
    width: 80px;
    height: 50px;
    margin-top: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    transition:
      border-color 0.4s,
      outline 0.4s,
      background-color 0.4s;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    padding: 0;
    cursor: pointer;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 30px;
    border-radius: 20%;

    &:before {
      content: '';
      background: url()
        no-repeat center;
      width: 30px;
      height: 30px;
      display: inline-block;
      background-size: contain;
    }
  }
  &-controller {
    position: absolute;
    display: flex;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    height: 35px;
    width: 100%;
    z-index: 11111111;
    align-items: center;
    opacity: 0;
    transition: all 1s;
    &.nut-video-controller--show {
      opacity: 1;
    }
    &.nut-video-controller--hide {
      opacity: 0;
    }
    .nut-video-controller__playbtn {
      width: 18px;
      height: 18px;
      background-image: -webkit-image-set(
        url()
          1x
      );
      background-repeat: no-repeat;
      background-position: center;
      margin: 0 10px;
      &.puase {
        background-image: -webkit-image-set(
          url()
            1x
        );
        background-repeat: no-repeat;
        background-position: center;
      }
    }

    .nut-video-controller__total,
    .nut-video-controller__now {
      color: #fff;
      padding: 0 5px;
      font-size: 10px;
    }
    .nut-video-controller__progress {
      position: relative;
      display: inline-block;
      height: 100%;
      width: 100%;
      // overflow: hidden;
      margin: 0 5px;
      transition: all 0.2s ease-in;
      flex: 1;
      .nut-video-controller__progress-value {
        position: absolute;
        top: 50%;
        width: 100%;
        height: 2px;
        margin-top: -0.05rem;
        background: rgba(255, 255, 255, 0.5);
        // overflow: hidden;
      }
      .buffered {
        background: rgba(255, 255, 255, 0.8);
        height: 2px;
      }
      .nut-video-controller__ball {
        width: 10px;
        height: 10px;
        position: absolute;
        top: 50%;
        left: 0;
        border-radius: 50%;
        div {
          width: 10px;
          height: 10px;
          background: #fff;
          box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.2);
          margin: 0 -5px;
          border-radius: 50%;
        }
        &:hover {
          width: 15px;
          height: 15px;
        }
      }
    }
    .nut-video-controller__full {
      width: 40px;
      height: 35px;
      background-image: -webkit-image-set(
        url()
          1x
      );

      background-repeat: no-repeat;
      background-position: center;
      &.full2 {
        background-image: -webkit-image-set(
          url()
            1x
        );
        background-repeat: no-repeat;
        background-position: center;
      }
    }
    .nut-video-controller__volume {
      width: 30px;
      height: 30px;
      background-image: -webkit-image-set(
        url()
          1x
      );
      background-repeat: no-repeat;
      background-position: center;
      &.muted {
        background-image: -webkit-image-set(
          url()
            1x
        );
        background-repeat: no-repeat;
        background-position: center;
      }
    }
  }
  &-error {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 111111;
    background: #000;
    color: #fff;
    text-align: center;
    p {
      color: #fff;
    }
  }
}
